package com.itjiange;

/**
 * 口香糖售罄的状态
 *
 * @author ItJianGe
 * @data 2024/8/20 17:18
 */
public class SoleChewEmptyStatus implements Status {

    private GumballMachine gumballMachine;

    public SoleChewEmptyStatus(GumballMachine gumballMachine) {
        this.gumballMachine = gumballMachine;
    }

    @Override
    public void insertCoin() {
        System.out.println("口香糖已经售罄，无法投入钱币");
    }

    @Override
    public void undoCoin() {
        System.out.println("退款成功");
    }

    @Override
    public void turnCrank() {
        System.out.println("口香糖已经售罄，无法转动曲柄");
    }

    @Override
    public void dispense() {
        System.out.println("口香糖已经售罄，无法发放口香糖");
    }
}
